package ManagerSystem;

import java.util.Scanner;

import org.junit.Test;

/**
 * 老师功能菜单
 * @author ChrisL
 *
 */
public class Teacher {
@Test
	public void Function(){
		System.out.println("************老师功能菜单**************");
		System.out.println("*         1.添加学生信息                                       *");
		System.out.println("*         2.查询学生信息                                       *");
		System.out.println("*         3.修改学生信息                                       *");
		System.out.println("*         4.删除或恢复学生信息                           *");
		System.out.println("*         0.  退出                                                 *");
		Scanner input=new Scanner(System.in);
		System.out.println("请选择序号：");
		int choose=input.nextInt();
		switch(choose){
		case 1:AddStuInfo asi=new AddStuInfo();
		       asi.Info();
		       this.Function();
		       break;
		case 2:SearchInfo si=new SearchInfo();
		       si.SearchStu2();
		       this.Function();
		       break;
		case 3:ModifyInfo mi=new ModifyInfo();
		       mi.ModifyStu();
		       this.Function();
		       break;
		case 4:DeleteInfo di=new DeleteInfo();
		       di.DeleteStu();
		       this.Function();
		       break;
		case 0:System.out.print("已退出");
		       Login l=new Login();
		       l.UserLog();
		       break;
		}

	}
	
}
